<?php
if (!defined('EXPONENT')) exit('');

    if (exponent_permissions_check('configuration',exponent_core_makeLocation('administrationmodule'))) {
        global $db;
        
        $object = $db->selectObject('profilemodule_meeting_config',"location_data='".serialize($loc)."'");
                    
        $object->location_data=serialize($loc);
        $object->mail_to_customer_title = trim($_REQUEST['mail_to_customer_title']);
        $object->mail_to_customer = trim($_REQUEST['mail_to_customer']);
        $object->mail_to_admin_title = trim($_REQUEST['mail_to_admin_title']);
        $object->mail_to_admin = trim($_REQUEST['mail_to_admin']);
        $object->mail_list = trim($_REQUEST['mail_list']);
        if($object->id)
        $db->updateObject($object,'profilemodule_meeting_config','id='.$object->id);
        else
        $db->insertObject($object,'profilemodule_meeting_config');
        exponent_flow_redirect();
    }
    else 
    echo exponent_http_error(403);
  
?>